using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;

namespace LeadTracker.Entities
{
	public class LeadCommentCollection : ObservableCollection<LeadComment>
	{
		public LeadCommentCollection() { }

		public LeadCommentCollection(List<LeadComment> list) : base(list) { }

		public LeadCommentCollection(IEnumerable<LeadComment> collection) : base(collection) { }

		public LeadCommentCollection(IEnumerable<IDictionary<string, object>> table)
		{
			Load(table);
		}

		internal void Load(IEnumerable<IDictionary<string, object>> table)
		{
			foreach (var item in table)
				Add(new LeadComment(item));
		}


	}
}
